home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1997
/
MacHack 1997.toast
/
Hacks
/
Hacks ’96
/
Booting Gallery
/
Booting Gallery (source)
/
Sources
/
Sprite Sources
/
A5World.cpp
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1996-06-22
|
435 b
|
47 lines
|
[
TEXT/BROW
]
#include "A5World.h"
#include <globals.h>
A5World::A5World()
{
#ifdef __G_A4__
long saveA5 = GetA5();
SetA5((long)&a5PointsHere);
InitGraf(&fQD.thePort);
SetA5(saveA5);
#endif
}
void A5World::Restore(long old)
{
#ifdef __G_A4__
SetA5(old);
#endif
}
A5World::~A5World()
{
}
long A5World::Use()
{
#ifdef __G_A4__
long saveA5 = GetA5();
SetA5((long)&a5PointsHere);
return saveA5;
#else
return 0;
#endif
}